<template>
  <div class="box" id="attachment">
    <attachment :code="code" :fujianObjList="fujianObjList"></attachment>
  </div>
</template>

<script>
import { queryProjectResultAuditInfo } from "@/api/projectImplementation";
import attachment from "@/components/attachment";
export default {
  components: {
    attachment
  },
  data() {
    return {
      fujianObjList:[],
      code:'X_M_S_S',
    };
  },
  mounted() {
    this.getFujian();
  },
  methods: {
    //获取附件列表
    getFujian() {
      var data = {
        projectId: localStorage.getItem("projectId")
      };
      let loadingInstance = this.$loading(this.$loadingData)
      queryProjectResultAuditInfo(data).then(res => {
        loadingInstance.close()
        if(res.data){
          var arr = []
          arr.push({title:'附件',list:res.data.projectTextAccessoryList})
          arr.push({title:'规划图变更',list:res.data.planningMapChangeList})
          
          this.fujianObjList = arr
        }
      }).catch(err =>{
        loadingInstance.close()
      });
    },
  }
};
</script>

<style lang="scss" scoped>
  .box{
    box-sizing: border-box;
    padding: 30px;
  }
</style>
